package com.google.shop.product.wxlogin.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
//import org.apache.commons.configuration.tree.DefaultExpressionEngine;

/* loaded from: app.jar:BOOT-INF/classes/com/google/shop/product/wxlogin/entity/BaseMessage.class */
public class BaseMessage {
    @XStreamAlias("ToUserName")
    String toUserName;
    @XStreamAlias("FromUserName")
    String fromUserName;
    @XStreamAlias("CreateTime")
    String createTime;
    @XStreamAlias("MsgType")
    String msgType;

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof BaseMessage)) {
            return false;
        }
        BaseMessage other = (BaseMessage) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$toUserName = getToUserName();
        Object other$toUserName = other.getToUserName();
        if (this$toUserName == null) {
            if (other$toUserName != null) {
                return false;
            }
        } else if (!this$toUserName.equals(other$toUserName)) {
            return false;
        }
        Object this$fromUserName = getFromUserName();
        Object other$fromUserName = other.getFromUserName();
        if (this$fromUserName == null) {
            if (other$fromUserName != null) {
                return false;
            }
        } else if (!this$fromUserName.equals(other$fromUserName)) {
            return false;
        }
        Object this$createTime = getCreateTime();
        Object other$createTime = other.getCreateTime();
        if (this$createTime == null) {
            if (other$createTime != null) {
                return false;
            }
        } else if (!this$createTime.equals(other$createTime)) {
            return false;
        }
        Object this$msgType = getMsgType();
        Object other$msgType = other.getMsgType();
        return this$msgType == null ? other$msgType == null : this$msgType.equals(other$msgType);
    }

    protected boolean canEqual(Object other) {
        return other instanceof BaseMessage;
    }

    public int hashCode() {
        Object $toUserName = getToUserName();
        int result = (1 * 59) + ($toUserName == null ? 43 : $toUserName.hashCode());
        Object $fromUserName = getFromUserName();
        int result2 = (result * 59) + ($fromUserName == null ? 43 : $fromUserName.hashCode());
        Object $createTime = getCreateTime();
        int result3 = (result2 * 59) + ($createTime == null ? 43 : $createTime.hashCode());
        Object $msgType = getMsgType();
        return (result3 * 59) + ($msgType == null ? 43 : $msgType.hashCode());
    }

//    public String toString() {
//        return "BaseMessage(toUserName=" + getToUserName() + ", fromUserName=" + getFromUserName() + ", createTime=" + getCreateTime() + ", msgType=" + getMsgType() + DefaultExpressionEngine.DEFAULT_INDEX_END;
//    }

    public String getToUserName() {
        return this.toUserName;
    }

    public String getFromUserName() {
        return this.fromUserName;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public String getMsgType() {
        return this.msgType;
    }
}
